
<style type="text/css">
.select.select-block .btn {
    width: 100px;
    float: left;
}
</style>

<div style="width:1024px; MARGIN-RIGHT: auto; MARGIN-LEFT: auto;">


    <div class="login-form" style="">

    <form method="post" action="./index.php?m=Home&c=Player&a=save">

    <table width="100%">

    <tr>
        <td style="width:200px;">
            <div class="form-group"><span>姓名</span></div>
        </td>
        <td>
            <div class="form-group">
                <input type="text" class="form-control login-field" value="{$player.name}" id="player-name" name ="name" >
            </div>
        </td>
    </tr>

    <tr>
        <td style="width:200px;">
            <div class="form-group"><span>昵称</span></div>
        </td>
        <td>
            <div class="form-group">
                <input type="text" class="form-control login-field" value="{$player.nick_name}" id="player-nickname" name ="nick_name" >
            </div>
        </td>
    </tr>

    <tr>
        <td style="width:200px;">
            <div class="form-group"><span>性别</span></div>
        </td>
        <td>
            <div class="form-group">

<if condition="$player.gender eq 1">
                <label class="radio" style="float:left;">
                <input type="radio" name="gender" id="gender1" value="1" data-toggle="radio" checked="checked">
                男&nbsp;&nbsp;
                </label>
                <label class="radio" style="float:left;">
                <input type="radio" name="gender" id="gender" value="0" data-toggle="radio">
                女&nbsp;&nbsp;
                </label>
<else/>
                <label class="radio" style="float:left;">
                <input type="radio" name="gender" id="gender1" value="1" data-toggle="radio">
                男&nbsp;&nbsp;
                </label>
                <label class="radio" style="float:left;">
                <input type="radio" name="gender" id="gender" value="0" data-toggle="radio" checked="checked">
                女&nbsp;&nbsp;
                </label>
</if>

            </div>
        </td>
    </tr>

    <tr>
        <td style="width:200px;">
            <div class="form-group"><span>身高</span></div>
        </td>
        <td>
            <div class="form-group">
                <input type="text" class="form-control login-field" value="{$player.height}" id="player-height" name ="height" >
                <label class="login-field-icon" for="player-height">CM / 厘米</label>
            </div>
        </td>
    </tr>

    <tr>
        <td style="width:200px;">
            <div class="form-group"><span>体重</span></div>
        </td>
        <td>
            <div class="form-group">
                <input type="text" class="form-control login-field" value="{$player.weight}" id="player-weight" name ="weight" >
                <label class="login-field-icon" for="player-weight">KG / 公斤</label>
            </div>
        </td>
    </tr>

    <tr>
        <td style="width:200px;">
            <div class="form-group"><span>位置</span></div>
        </td>
        <td>
            <div class="form-group" style="float: left; margin-right:20px;">
                <select name="position_y" value="{$player.position_y}" class="select-block">
                    <option value="F">F / 前锋</option>
                    <option value="AM">AM / 攻击型中场</option>
                    <option value="M">M / 平衡型中场</option>
                    <option value="DM">DM / 防守型中场</option>
                    <option value="D">D / 后卫</option>
                </select>
            </div>
            <div class="form-group" style="float: left; margin-right:20px;">
                <select name="position_x" value="{$player.position_x}" class="select-block">
                    <option value="R">R / 右路</option>
                    <option value="C">C / 中路</option>
                    <option value="L">L / 左路</option>
                </select>
            </div>
        </td>
    </tr>

    <tr>
        <td style="width:200px;">
            <div class="form-group"><span>主脚</span></div>
        </td>
        <td>
            <div class="form-group" style="float: left; margin-right:20px;">
                <select name="foot" value="{$player.foot}" class="select-block">
                    <if condition="$player.foot eq 'right'">
                        <option value="right" selected="selected">右脚</option>
                    <else />
                        <option value="right">右脚</option>
                    </if>

                    <if condition="$player.foot eq 'left'">
                        <option value="left" selected="selected">左脚</option>
                    <else />
                        <option value="left">左脚</option>
                    </if>

                    <if condition="$player.foot eq 'both'">
                        <option value="both" selected="selected">双脚</option>
                    <else />
                        <option value="both">双脚</option>
                    </if>
                </select>
            </div>
        </td>
    </tr>

    <tr>
        <td colspan=2>
            <div class="form-group">
                <input type="hidden" name="player_id" value="{$player.player_id}" />
                <input type="hidden" name="user_id" value="{$player.user_id}" />

                <input class="btn btn-primary btn-lg btn-block signup" type="submit" value="保存" />
            </div>
        </td>
    </tr>

    </table>

    </form>

    </div>

</div>

<script type="text/javascript">
    $("select[name='position_y']").selectpicker({style: 'btn-primary', menuStyle: 'dropdown-inverse'});
    // $("select[name='position_y']").selectpicker({style: 'btn-primary', menuStyle: 'dropdown-inverse'});
</script>
